package com.banksoft.cps.dao;

import com.banksoft.cps.bean.Practitioner;
import com.banksoft.cps.bean.query.PractitionerQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by rongzhao.zhu on 2017/12/27.
 */
@Repository
public interface PractitionerDao {

    List<Practitioner> list(PractitionerQuery query);

    long count(PractitionerQuery query);

    void insert(Practitioner bean);

    void update(Practitioner bean);

    void delete(String[] id);

    /**
     * 设置上岗资质文件
     * @param id
     * @param qualificationDoc
     */
    void setQDoc(String id,String qualificationDoc);


    List<Practitioner> listByIdList(List<String> idList);

    Practitioner findById(String id);

    void updateStatus(@Param("ids") String[] ids, @Param("status") String status);
}
